package com.liuqi.aiagent.transfer.mapstruct;

import com.liuqi.aiagent.transfer.dto.ModelEditDto;
import com.liuqi.aiagent.transfer.dto.ModelSaveDto;
import com.liuqi.aiagent.transfer.entity.Model;
import com.liuqi.aiagent.transfer.vo.ModelVo;
import java.util.List;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author liuqi
 * @date 2025/7/15
 **/
@Mapper
public interface ModelMapStruct {
    ModelMapStruct INSTANCE = Mappers.getMapper(ModelMapStruct.class);

    List<ModelVo> toVos(List<Model> models);

    Model from(ModelSaveDto modelSaveDto);

    Model from(ModelEditDto modelEditDto);
}
